package com.example.demo.mapper;

import com.example.demo.bean.SCustomer;
import com.example.demo.bean.SOrd;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SOrdMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SOrd record);
    List<Map<Object,Object>> countOrd();

    SOrd selectByPrimaryKey(Integer id);
    
    List<SOrd> selectBySaleRepId(Integer id);

    List<SOrd> selectAll();
    
    List<SOrd> selectByCustomerId(Integer id);

    int updateByPrimaryKey(SOrd record);

	List<SOrd> selectByName(String name);
	
	int batchDelete(@Param("id")int[] id);
}